package com.example.userclient.activity

import android.os.Bundle
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import com.baidu.mapapi.walknavi.WalkNavigateHelper


class GotoActivity : AppCompatActivity() {


    private var mNaviHelper:WalkNavigateHelper? = null
    override fun onCreate(savedInstanceState: Bundle?) {

        val naviHelper = WalkNavigateHelper.getInstance()
        mNaviHelper = naviHelper
        val view: View = naviHelper.onCreate(this@GotoActivity)
        setContentView(view)
        naviHelper.startWalkNavi(this@GotoActivity)
        super.onCreate(savedInstanceState)
//        setContentView(R.layout.activity_goto)
        //获取WalkNavigateHelper实例
        //获取WalkNavigateHelper实例

//获取诱导页面地图展示View
//获取诱导页面地图展示View


    }

    override fun onResume() {
        super.onResume()
        mNaviHelper?.resume()
    }

    override fun onPause() {
        super.onPause()
        mNaviHelper?.pause()
    }

    override fun onDestroy() {
        super.onDestroy()
        mNaviHelper?.quit()
    }
}